package com.yang.concurrency.chapter2;

/**
 * @Author: 血魔
 * @Date: Created in 13:13 2021/12/12
 * @Version: 1.0$
 */
public class SimpleCalculatorStrategy implements CalculatorStrategy {

    private final static double SALARY_RATE = 0.1;
    private final static double BONUS_RATE = 0.1;

    public double calculate(double salary, double bonus) {
        return salary * SALARY_RATE + bonus * BONUS_RATE;
    }
}
